//
//  MallOrderListCell.swift
//  LeGou
//
//  Created by lxm on 2022/8/5.
//

import UIKit

class MallOrderListCell: XMBaseTableViewCell {
    @IBOutlet weak var orderNo: UILabel!
    
    @IBOutlet weak var state: UILabel!
    
    @IBOutlet weak var name: UILabel!
    
    @IBOutlet weak var img: UIImageView!
    
    @IBOutlet weak var time: UILabel!
    
    @IBOutlet weak var price: UILabel!
    
    @IBOutlet weak var leftBtn: UIButton!
    
    @IBOutlet weak var rightBtn: UIButton!
    
    @IBOutlet weak var unit: UILabel!
    
    @IBOutlet weak var icon: UIImageView!
    
    @IBOutlet weak var topLeftIcon: UIView!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
        topLeftIcon.style.GradientLeftToRight(left: "#F07650".zm.hex(), right: "#DC1927".zm.hex())
        ZMUtil.clipCircle(view: topLeftIcon, Corner: [.topLeft, .bottomRight], radius: 8)
    }
    
}
